package cn.pubinfo.controller;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * Created by zck on 2017/11/13.
 */
@Aspect
@Component
public class TestConfig {
    @Pointcut("execution(public * cn.pubinfo.service.impl..get(..))")
    public void filterArea(){
    }

    @Before("filterArea()")
    public void before(){
        System.out.println("###################");
    }

    @After("filterArea()")
    public void after(){
        System.out.println("are you ok");
    }
}
